import request from "@/utils/request";
import RequestMethod from "@/constant/RequestMethod";


export function customerLogin(data) {
    return request({
        url : '/api/customer/login',
        method : RequestMethod.POST,
        data
    })
}

export function customerRegistery(data) {
    return request({
        url : '/api/customer/registery',
        method : RequestMethod.POST,
        data
    })
}

export function getCustomreInfo(){
    return request({
        url : '/api/customer/info',
        method : RequestMethod.GET,
    })
}

export function createOrder(data) {
    return request({
        url : '/api/order',
        method : RequestMethod.POST,
        data
    })
}